package com.jindy.module.approvalConfig.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jindy.common.annotation.Excel;
import com.jindy.common.core.domain.BaseEntity;

/**
 * 审批单配置对象 t_approval_config
 * 
 * @author jindy
 * @date 2023-03-28
 */
@Data
public class ApprovalConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 配置类型 */
    @Excel(name = "配置类型")
    private String processType;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long userId;

    /** 申请人用户名 */
    @Excel(name = "申请人用户名")
    private String username;

    /** 额外的 */
    @Excel(name = "额外的")
    private String extra;

    /** 状态 */
    @Excel(name = "状态")
    private String dataState;

    public ApprovalConfig() {
    }

    public ApprovalConfig(String processType, String dataState) {
        this.processType = processType;
        this.dataState = dataState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("processType", getProcessType())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("remark", getRemark())
            .append("extra", getExtra())
            .append("dataState", getDataState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
